function setAllDataCheck(goods, c){
    // this.checked设置给所有的单个商品的复选框
    const checks = document.querySelectorAll(".check");
    [...checks].forEach(val=>{
        val.checked = c;
    })

    goods.forEach(val=>{
        val.check = c;
    })
    localStorage.setItem("goods", JSON.stringify(goods));
}


export default setAllDataCheck;